<?php
class ProductCategory extends AppModel{
	public $name='ProductCategory';	
	
	public $validate = array(
		'name' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
						array('rule'=>array('unique','name'),'message'=>'data is already existed'))		
	);
	public $actsAs = array('Translate'=>array('name','description'));

	//public $translateTable  = 'news_i18n';
	public $hasMany = array(
        'Product' => array(
            'className'     => 'Product', 
 			
            'dependent'=> true
        )
    );  
    
    //Use a different model (and table)
    public $translateTable  = 'product_i18n';
}
?>
